import React,{PureComponent} from 'react'
import {Button,StyleSheet,TouchableOpacity, Image,Text} from 'react-native'

export class CommonTextButton extends PureComponent<Props>{

    render(){
        return (
            <TouchableOpacity onPress={this.props.onPress}>
                <Text style={styles.common_text}>{this.props.title}</Text>
            </TouchableOpacity>
        )
    }
}


export class ImageButton extends PureComponent<Props>{
    render(){
        return (
            <TouchableOpacity onPress={this.props.onPress}>
                <Image
                    style={this.props.style}
                    source={this.props.source}
                />
            </TouchableOpacity>
        )
    }
}
const styles = StyleSheet.create({
    common_text:{
      color:'white',
        fontSize:14,
        marginLeft:12,
    },
})